<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <title>跳转中转页面</title>
  <!-- 样 式 文 件 -->
  <link rel="stylesheet" th:href="@{component/pear/css/pear.css}"/>
  <link rel="stylesheet" th:href="@{admin/css/other/login.css}"/>
  <link rel="icon" href="admin/images/favicon.ico" type="image/x-icon"/>
  <style>
    .position-ableft50 {
      position: absolute;
      left: 50px;
    }

    .ml0 {
      margin-left: 0;
    }
  </style>
</head>
<!-- 代 码 结 构 /admin/images/background.svg -->
<body background="" style="background-size: cover;">
<a href="/login" target="_top">
  <div id="tologin"></div>
</a>

<!-- 资 源 引 入 -->
<script th:src="@{/component/layui/layui.js}"></script>
<script th:src="@{/component/pear/pear.js}"></script>
<script th:src="@{/admin/js/jquery.min.js}"></script>
<script th:src="@{component/my/const.js}"></script>
<script>
    $("#tologin").trigger("click");
    layui.use(['form', 'button', 'popup', 'element'], function () {
        var form = layui.form;
        var button = layui.button;
        var popup = layui.popup;
        var element = layui.element;

        element.on('tab(tab1)', function (data) {
            console.log(this); //当前Tab标题所在的原始DOM元素
            // 改变网页标题
            $('title').html(this.innerHTML);
            // console.log(data.index); //得到当前Tab的所在下标
            // console.log(data.elem); //得到当前的Tab大容器
        });


    })
</script>
</body>
</html>